package com.qf.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName RabbitmqConfig
 * @Description
 * @Author lanzhike
 * @Date 2023/7/31 22:22
 * @Version 1.0
 */
@Configuration
public class RabbitmqConfig {

    @Bean
    public Queue emailQueue(){
        return new Queue(RabbitmqKey.EMAIL_QUEUE);
    }

    @Bean("loggerQueue")
    public Queue loggerQueue(){
        return new Queue(RabbitmqKey.LOGGER_QUEUE);
    }
}
